import { RGBELoader } from 'three/addons/loaders/RGBELoader.js'
import { AssetContainer } from '../AssetContainer.js'

export class MyRGBELoader extends RGBELoader {
    static instance = null

    constructor(manager) {
        super(manager)
    }

    load({ id, url }) {

        super.load(url, async (texture) => {
            AssetContainer.instance.set(id, texture)
        })
    }
}
